﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.CallPolices;

namespace LeadThing.AbpZeroTemplate.CallPolices.EntityMapper.CallPolices
{

    /// <summary>
    /// 一键报警表的数据配置文件
    /// </summary>
    public class CallPoliceCfg : EntityTypeConfiguration<CallPolice>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public CallPoliceCfg()
        {
            ToTable("CallPolice", AbpZeroTemplateConsts.SchemaName.Basic);


            // X坐标
            Property(a => a.XPoint).HasMaxLength(4000);
            // Y坐标
            Property(a => a.YPoint).HasMaxLength(4000);
            // 地址
            Property(a => a.Address).HasMaxLength(4000);
            // 备注
            Property(a => a.Remarks).HasMaxLength(4000);
            // 处理意见
            Property(a => a.HandleSuggestion).HasMaxLength(4000);
            // 结案意见
            Property(a => a.ClosedSuggestion).HasMaxLength(4000);
        }
    }
}